package builder

import (
	"autobattle/battle_obj"
	"autobattle/context"
)

type CharacterBuilder struct{}

func (o *CharacterBuilder) BuildCharacter(p []battle_obj.BattleProperty, c *context.Context) []battle_obj.Character {
	var characters []battle_obj.Character
	for _, property := range p {
		character := battle_obj.NewCharacter(property, c)
		characters = append(characters, character)
	}
	return characters
}
